using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class so_optionsMap : EntityTypeConfiguration<so_options>
    {
        public so_optionsMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.view)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("so_options");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.view).HasColumnName("view");
            this.Property(t => t.ShowLines).HasColumnName("ShowLines");
            this.Property(t => t.ShowAlternate).HasColumnName("ShowAlternate");
            this.Property(t => t.LineSpacing).HasColumnName("LineSpacing");
            this.Property(t => t.LineFontSize).HasColumnName("LineFontSize");
            this.Property(t => t.ShowRecordNo).HasColumnName("ShowRecordNo");
        }
    }
}
